var dom = document.getElementById("p_annular");

var myChart = echarts.init(dom);
var app = {};
var option;
option = {
	/* legend: {
			show: true,
			orient: 'vertical',
			 x:'50%',      //可设定图例在左、右、居中
            y:'center',
			itemWidth: 12, //图例宽
			itemHeight: 12, //图例高
			itemGap: 25, //图例之间间距
			textStyle: {
				color: '#b1bcff',
				fontSize: 15 //更改坐标轴文字大小
			},
			data: ['即开相关设备', '监控相关设备', '终端机', '电视机']
	}, */
	series: [{
		name: '面积模式',
		type: 'pie',
		 center: ['25%', '50%'],
		/*radius: ['20%', '70%'], */
		 radius: '50%',
		//roseType: 'area',
		label: {
			show: false
		},
		emphasis: {
			label: {
				show: false
			}
		},
		data: [{
				value: 28,
				name: '即开相关设备',
				itemStyle: {
					borderWidth: 3,
					borderColor: '#08103c',
					color: "#3376ff"
				}
			},
			{
				value: 26,
				name: '监控相关设备',
				itemStyle: {
					borderWidth: 3,
					borderColor: '#08103c',
					color: "#e744ff"
				}
			},
			{
				value: 22,
				name: '终端机',
				itemStyle: {
					borderWidth: 3,
					borderColor: '#08103c',
					color: "#fff32d"
				}
			},
			{
				value: 18,
				name: '电视机',
				itemStyle: {
					borderWidth: 3,
					borderColor: '#08103c',
					color: "#78d638"
				}
			}
		]
	}]
};

if (option && typeof option === 'object') {
	myChart.setOption(option);
};
